package com.hqins.app.cloud.feignclient;

import com.hqins.app.cloud.common.ResponseObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class HelloController {
    @Autowired
    HelloService helloService;

    @RequestMapping(value = "/fhi/{name}",method = RequestMethod.GET)
    public ResponseObject sayHi(@PathVariable String name){
        return helloService.sayHiFromClientOne(name);
    }

}
